// 引入
import Vue from 'vue'
import Vuex from 'vuex'

import Home from './modules/Home'
import Order from './modules/Order'
import goods from './modules/goods'
import category from './modules/category'
import account from './modules/account'
import permission from './modules/permission'


// 注册
Vue.use(Vuex)

// 结构
const storeObj = {
  
    modules: {
        Home,
        Order,
        goods,
        category,
        account,
        permission
    }
}
// 1. 发送ajax获取homeData
// 2. 根据homeData计算出卡片需要的cardInfoData
// 实例
export default new Vuex.Store(storeObj)